import request from '@/utils/request'
//分类数据，已JSON格式
export function getJsonData(){
  return request({
    url: '/system/companyCategroy/getJsonData',
  })
}

// 查询商家商品分类列表
export function listCompanyCategroy(query) {
  return request({
    url: '/system/companyCategroy/list',
    method: 'get',
    params: query
  })
}

// 查询商家商品分类详细
export function getCompanyCategroy(id) {
  return request({
    url: '/system/companyCategroy/' + id,
    method: 'get'
  })
}

// 新增商家商品分类
export function addCompanyCategroy(data) {
  return request({
    url: '/system/companyCategroy',
    method: 'post',
    data: data
  })
}

// 修改商家商品分类
export function updateCompanyCategroy(data) {
  return request({
    url: '/system/companyCategroy',
    method: 'put',
    data: data
  })
}

// 删除商家商品分类
export function delCompanyCategroy(id) {
  return request({
    url: '/system/companyCategroy/' + id,
    method: 'delete'
  })
}
